package com.edwarder.service.impl;

import com.alibaba.fastjson.JSON;
import com.edwarder.dao.ProvinceDao;
import com.edwarder.entity.Province;
import com.edwarder.service.ProvinceService;
import utils.MybatisUtils;

import java.util.List;

/**
 * @Auther: jzhang
 * @Date: 2018/9/21 13:54
 * @Description:
 */
public class ProvinceServinceImpl implements ProvinceService {
    private ProvinceDao provinceDao = MybatisUtils.getSqlSession().getMapper(ProvinceDao.class);

    @Override
    public String getProvinceJsonString() {
        List<Province> list = provinceDao.findList();
        return JSON.toJSONString(list);
    }

}
